//
//  FilesManage.h
//  JXFile
//
//  Created by 祁俊喜 on 2024/4/12.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface FilesManage : NSObject

//文件目录
+ (NSString *)documentsPath;
//获取文件夹所有文件名
+ (NSArray *)getAllFilesName;
//获取文件大小
+(NSString *)getFileSize:(NSString *)fileName;

/** string格式转换为超文本HTML格式*/
+(NSString *)htmlStringByAttributeString:(NSString *)string;

+(UIImage *)getImage:(NSString *)string;

+(void)deleteFile:(NSString *)fileName;

+ (void)deleteDZMeBookRead:(NSString *)fileName;

+(UIWindow *)getCurrentWindow;

+(NSString *)usedSpaceAndfreeSpace;

+(NSString *)folderSize:(NSString *)folderPath;

//判断是文件还是文件夹
+(BOOL)isDirectory:(NSString *)filePath;


@end

NS_ASSUME_NONNULL_END
